libxl: make it possible to disable vnc
authorZhou Peng <zhoupeng@nfs.iscas.ac.cn>
Fri, 20 May 2011 15:11:13 +0000 (16:11 +0100)
committerZhou Peng <zhoupeng@nfs.iscas.ac.cn>
Fri, 20 May 2011 15:11:13 +0000 (16:11 +0100)
commit20c29ef7d36a4aad0facf6eeaaa490887ecda06f
tree38dd84b25f37f88cd693e7e6e5c0e2aa2c2111d6
parent8b7d4efbc3f9393ff73c4c2aa14bde59a199d3b6
libxl: make it possible to disable vnc

tools/libxl/libxl__build_device_model_args_new/old: The condition is
so rigorous that user has no chance to disable the vnc,
considering what has been done in parse_config_data() by default,
which is not resonable with vnc option in vm-cfg file.

I think, If user explicitly set "vnc=0", vnc should be disabled.
User should have the chance to only use sdl, other remote
display(spice) and even nothing.

Signed-off-by: Zhou Peng <zhoupeng@nfs.iscas.ac.cn>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_dm.c